﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MPBlog.UserControls;

namespace MPBlog.Widgets.Search
{
    public partial class WidgetBase : UserControls.WidgetBase
    {
        public override bool IsEditable
        {
            get { return true; }
        }

        public override string Name
        {
            get { return "Search"; }
        }

        public override string Title
        {
            get { return "搜索"; }
        }

        public override void LoadWidget()
        {
           // string content = "<input type='text' id='key' /><input type='submit' value='search' id='btnSubmit'/>";
           // LiteralControl text = new LiteralControl { Text = content };
           // Controls.Add(text);
        }

        protected void btnSearchClick(object sender, EventArgs e)
        {
            string text = txtSearch.Text;
            Response.Redirect("http://www.baidu.com");
        }
    }
}